/* LoadInfo.java

{{IS_NOTE
	Purpose:

	Description:

	History:
		Oct 8, 2007 9:34:48 AM     2007, Created by Dennis.Chen
}}IS_NOTE

Copyright (C) 2007 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
	This program is distributed under GPL Version 2.0 in the hope that
	it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.imdm.portal.loadchecker.ui;

/**
 * @author Dennis.Chen
 *
 */
public class LoadInfo {
	final static public String _UPDATING = "..updating";
	final static public String _UNKNOWN = "?";
	final static public int _INVALID_LOGIN = -1;
	String server;
	String load;
	String linker;
	String linktime;
	int logins = _INVALID_LOGIN;

	//login entity number & login name list. for login column popup
	int login_entities = 0;
	String login_names;

	//store the server info shown as popup on client
	String server_details = null;

	public int getLogin_entities() {
		return login_entities;
	}

	public void setLogin_entities(int le) {
		this.login_entities = le;
	}

	public String getLogin_names() {
		return login_names;
	}

	public void setLogin_names(String ln) {
		this.login_names = ln;
	}

	public LoadInfo(String s, String ld, String lk, String lt, int lgs) {
		super();
		this.server = s;
		this.linker = lk;
		this.load = ld;
		this.linktime = lt;
		this.logins = lgs;
	}

	public String getServerDetails() {
		return server_details;
	}
	public void setServerDetails(String detail) {
		this.server_details = detail;
	}
	public String getServer() {
		return server;
	}
	public void setServer(String s) {
		this.server = s;
	}
	public String getLoad() {
		return load;
	}
	public void setLoad(String ld) {
		this.load = ld;
	}
	public String getLinker() {
		return linker;
	}
	public void setLinker(String lk) {
		this.linker = lk;
	}
	public String getLinktime() {
		return linktime;
	}
	public void setLinktime(String linktime) {
		this.linktime = linktime;
	}
	public int getLogins() {
		return logins;
	}
	public void setLogins(int lgs) {
		this.logins = lgs;
	}

	public boolean validLogins() {
		return this.logins != _INVALID_LOGIN;
	}

}
